package com.tutu.cmn.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Program: yygh_parent
 * @Description: mp分页插件
 * @Author: JK.TuTu
 * @Create: 2022-09-18 17:56
 **/
@Configuration
@MapperScan("com.tutu.cmn.mapper")
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
